package com.bys.admin.system.vo;

import com.bys.admin.system.entity.SysMenu;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;
@Schema(name = "菜单视图")
@Data
@EqualsAndHashCode(callSuper = false)
public class SysMenuVo extends SysMenu {
    @Schema(description = "菜单子菜单")
    private List<SysMenuVo> children;

    private String menuName;

    public String getMenuName() {
        return getMeta().getTitle();
    }
}
